package xyz.coolcsm.security.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 什锦
 * @since 2021-06-1
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_favorite")
public class Favorite implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer bid;//收藏博客id
    private Integer uid;//所属用户

    @TableField(fill = FieldFill.INSERT)//自动填充
    private Date createTime;

}
